---
title: SQL-016: Appeal number / review level list for a case
summary: Appeal number / review level list for a case
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Application.Claim.Legal
reference_type: embedded
---

# SQL-016 Appeal number review level list for a case

StringBuilder/concatenation (const APEALNUMLEVELSQL + CurrentCaseID → GetCodeCollection) for `clsOutcomeManager`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-016 |
| **Operation type** | Read |
| **Execution method** | StringBuilder/concatenation (const APEALNUMLEVELSQL + CurrentCaseID → GetCodeCollection) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsOutcomeManager` |
| **Criteria property** | N/A |
| **Lifecycle method** | AppealNumLevelList property getter |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [APPEAL](../database-tables.md#appeal) | SELECT | See [database table section](../database-tables.md#appeal) |
| [REVIEW_LEVEL_CODE](../database-tables.md#review_level_code) | SELECT | See [database table section](../database-tables.md#review_level_code) |
| [DUAL](../database-tables.md#dual) | SELECT | See [database table section](../database-tables.md#dual) |

## Sample SQL

```sql
-- Reconstructed: APEALNUMLEVELSQL & CurrentCaseID.ToString
SELECT
  '0',
  'Hearings Level'
FROM dual
UNION
SELECT
  to_char(APPEAL.APPEAL_SEQ_NUM) as code,
  CODE_DESCR || decode(appeal.appeal_num, null, '', '-' || APPEAL.APPEAL_NUM) as description
FROM APPEAL
  LEFT OUTER JOIN REVIEW_LEVEL_CODE
    ON REVIEW_LEVEL_CODE = CODE
WHERE APPEAL.LEGAL_CASE_SEQ_NUM = <CurrentCaseID>
```

## Operations and processes
- Case outcome entry — appeal level selector



## Sources
- SAIF.Application.Claim.Legal\LegalNet\clsOutcomeManager.vb
